package test;


/**
 * @author ethan
 * create 2018-04-13 上午11:39
 * desc
 **/
public class Person {
    private int id;
    private String name;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Person(){

    }

    public Person(int id ,String name){
        this.id= id;
        this.name=name;
    }

    public void sayHello(){
        String str = String.format("person:%s ,id:%d,name:%s sayHello",this.hashCode(),id,name);
        System.out.println(str);
    }
}
